import React from 'react';
import ReactDOM from 'react-dom';
import {Router, Route,hashHistory,IndexRoute, Redirect} from 'react-router';

import Menus from './components/Menus';
import Login from "./components/Login";
import Index from './components/Index';
import OrderHouseIndex from './components/OrderHouseIndex';
import OrderHouseIntro from './components/OrderHouseIntro';
import OrderHourChoose from './components/OrderHourChoose';
import Calendar from './components/Calendar';
import AddRess from './components/AddRess';
import InputAddRess from './components/InputAddRess';
import OrderList from './components/OrderList';
import Mine from './components/Mine';
import Charge from './components/Charge';
import Charge500 from './components/Charge500';
import Charge1000 from './components/Charge1000'
import './components/fontSize'
import './assets/css/index.css';
import './assets/css/style.css';
import registerServiceWorker from './registerServiceWorker';

ReactDOM.render(
    (
       <Router history={hashHistory}>
          <Route path="/">
              <IndexRoute component={Index}></IndexRoute>
              <Route path="login" component={Login}></Route>
              <Route path="orderHouseIndex">
                  <IndexRoute  component={OrderHouseIndex}/>
                  <Route path='jinpai'>
                      <IndexRoute component={OrderHouseIntro}/>
                      <Route path="order" component={OrderHourChoose}></Route>
                  </Route>
              </Route>
              <Route path="ordertime" component={Calendar}>   </Route>
              <Route path='address' component={AddRess}/>
              <Route path='inputAddress' component={InputAddRess}/>
              <Route path='orderlist' component={OrderList}/>
              <Route path='mine' component={Mine}/>
              <Route path='charge'>
                  <IndexRoute component={Charge}/>
                  <Route path='charge500' components={Charge500}/>
                  <Route path='charge1000' components={Charge1000}/>
              </Route>
          </Route>
       </Router>),document.getElementById('root')
);
registerServiceWorker();
